package com.yxm.useryxm.service;

import com.yxm.useryxm.model.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletRequest;



/**
* @author Administrator
* @description 针对表【user】的数据库操作Service
* @createDate 2024-11-24 16:19:41
*/
public interface UserService extends IService<User> {
 /**
  * 用户注册
  * @param userAccount
  * @param userPassWord
  * @param checkPassword
  * @return
  */
 long userRegister(String userAccount,String userPassWord,String checkPassword);

    /**
     * 用户登录
     * @param userAccount
     * @param userPassWord
     * @param request
     * @return
     */
 User userLogin(String userAccount, String userPassWord, HttpServletRequest request);

    /**
     * 用户脱敏
     * @param user
     * @return
     */
 User getSafetytUser(User user);
}
